package com.badibadi.mail;

import com.badibadi.uniclubber.R;
import com.badibadi.uniclubber.R.id;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

/**
 *  问方和答方看到的不满意原因
 * 
 * 
 * 15 问方看到的，问方对答方的第二次回答不满意----图48,49 ： $num=8 && $is_pleased='0' &&
 * $sender_rank='asker' && $is_refund='0' 答方看到的，问方对答方的第二次回答不满意----图51,51 ：
 * $num=8 && $is_pleased='0' && $sender_rank='asker' && $is_refund='0'
 *
 * 
 * @author Administrator
 * 
 */
public class Mail48_49_51Activity extends Mail245Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// setContentView(R.layout.activity_mail48_49);
	}

	@Override
	protected void DongTaiPeiZhi() {
		// TODO Auto-generated method stub
		// super.DongTaiPeiZhi();
		TextView title_mail = (TextView) this.findViewById(R.id.title_mail);
		title_mail.setText(getResources().getString(R.string.wx_reply_zhanneixin));
		TextView tishi = (TextView) this.findViewById(R.id.tishi);
		tishi.setText(getResources().getString(R.string.Again_not_satisfied));
		tishi.setVisibility(View.VISIBLE);
		this.findViewById(R.id.delete).setVisibility(View.VISIBLE);
		if (rank.equals("answerer"))// 答方
		{
			Button shedingzhixunfei = (Button) this
					.findViewById(R.id.shedingzhixunfei);
			shedingzhixunfei.setText(getResources().getString(R.string.Not_satisfied_with_reason));
			shedingzhixunfei.setVisibility(View.VISIBLE);
			shedingzhixunfei.setOnClickListener(new View.OnClickListener() {

				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
                       Intent intent=new Intent(Mail48_49_51Activity.this,MailSeeZaicibumanyiActivity.class);
                       intent.putExtra("payUserContactShow1Model", payUserContactShow1Model);
                       intent.putExtra("flags", "1");
                       startActivity(intent);
				}
			});

		} else// 问方
		{
			Button shedingzhixunfei = (Button) this
					.findViewById(R.id.shedingzhixunfei);
			shedingzhixunfei.setText(getResources().getString(R.string.Not_satisfied_with_reason));
			shedingzhixunfei.setVisibility(View.VISIBLE);
			shedingzhixunfei.setOnClickListener(new View.OnClickListener() {

				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					 Intent intent=new Intent(Mail48_49_51Activity.this,MailSeeZaicibumanyiActivity.class);
                     intent.putExtra("payUserContactShow1Model", payUserContactShow1Model);
                     intent.putExtra("flags", "0");
                     startActivity(intent);
				}
			});
		}
	}

	//
	// @Override
	// public boolean onCreateOptionsMenu(Menu menu) {
	// // Inflate the menu; this adds items to the action bar if it is present.
	// getMenuInflater().inflate(R.menu.mail48_49, menu);
	// return true;
	// }

}
